﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class OrderDetails : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack) {
            txtOrderID.Text = Application["OrderID"].ToString();
            txtFullName.Focus();
        }
    }
    protected void btnNext_Click(object sender, EventArgs e)
    {
        Application["FullName"] = txtFullName.Text;
        Application["Address"] = txtAddress.Text;
        Application["City"] = txtCity.Text;
        Application["PhoneNo"] = txtPhoneNumber.Text;
        Application["Email"] = txtEmail.Text;
        Response.Redirect("ProductDetails.aspx");
    }
    protected void btnReset_Click(object sender, EventArgs e)
    {
        txtAddress.Text = "";
        txtCity.Text = "";
        txtEmail.Text = "";
        txtFullName.Text = "";
        txtOrderID.Text = "";
        txtPhoneNumber.Text = "";
        txtState.Text = "";
        rdbPaymentMode.ClearSelection();
        rdbPaymentMode.Items[0].Selected = true;
        txtFullName.Focus();
    }
}